package com.atguigu.spzx.manager.util;

import io.minio.MinioClient;
import lombok.Data;

@Data
public class MinioUtil {
    private MinioUtil(){}

    private static MinioClient minioClient;
    static {
        minioClient = MinioClient.builder()
            .endpoint("http://192.168.184.129:9001") //地域节点：要连接的minio服务器地址
            .credentials("admin", "admin123456") //连接minio的账号密码
            .build();
    }
    public static MinioClient build(){
        return minioClient;
    }
}